package com.cmc.cloud.cmclink.doc.api.document.rep.manifestrep.manifest;

import com.cmes.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 舱单查询 Request VO
 *
 * @author chenzheng
 */
@Schema(description = "管理后台 - 舱单查询 Request VO")
@Data
@ToString(callSuper = true)
public class ManifestQueryReqVO extends PageParam {

    @Schema(description = "订舱号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{manifest.bookingno.notblank}")
    @Length(max = 20, message = "{manifest.bookingno.length}")
    private String bookingNo;

}
